package com.lovejes.cuniao.domain.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the cn_business table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="cn_business"
 */

public abstract class BaseCnBusiness  implements Serializable {

	public static String REF = "CnBusiness";
	public static String PROP_STATUS = "Status";
	public static String PROP_MAPX = "Mapx";
	public static String PROP_INTRO = "Intro";
	public static String PROP_Area = "Area";
	public static String PROP_CITY = "City";
	public static String PROP_TEL = "Tel";
	public static String PROP_QQ = "Qq";
	public static String PROP_EMAIL = "Email";
	public static String PROP_FAX = "Fax";
	public static String PROP_MOBILE = "Mobile";
	public static String PROP_MAPY = "Mapy";
	public static String PROP_ADDRESS = "Address";
	public static String PROP_LICENSE = "License";
	public static String PROP_NAME = "Name";
	public static String PROP_PIC = "Pic";
	public static String PROP_ID = "Id";
	public static String PROP_BUSTYPE = "Bustype";
	public static String PROP_LEGAL = "Legal";
	public static String PROP_LEGALID = "Legalid";
	public static String PROP_COMMID = "Commid";
	public static String PROP_PASSCARD = "Passcard";
	public static String PROP_INDUSTRY = "Industry";
	public static String PROP_COMMENT = "Comment";
	public static String PROP_CREATETIME = "Createtime";
	public static String PROP_USERID = "Userid";

	// constructors
	public BaseCnBusiness () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseCnBusiness (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.String name;
	private java.lang.String pic;
	private java.lang.String city;
	private java.lang.String area;
	private java.lang.String address;
	private java.lang.String tel;
	private java.lang.String fax;
	private java.lang.String mobile;
	private java.lang.String qq;
	private java.lang.String email;
	private java.lang.String license;
	private java.lang.String bustype;
	private java.lang.String legal;
	private java.lang.String intro;
	private java.lang.String status;
	private java.math.BigDecimal mapy;
	private java.math.BigDecimal mapx;
	private java.lang.String legalid;
	private java.lang.String commid;
	private java.lang.String passcard;
	private java.lang.String industry;
	private java.lang.String comment;
	private java.util.Date createtime;
	private java.lang.String userid;


	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="uuid"
     *  column="ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}


	public java.lang.String getUserid() {
		return userid;
	}

	public void setUserid(java.lang.String userid) {
		this.userid = userid;
	}

	/**
	 * Return the value associated with the column: NAME
	 */
	public java.lang.String getName () {
		return name;
	}

	/**
	 * Set the value related to the column: NAME
	 * @param name the NAME value
	 */
	public void setName (java.lang.String name) {
		this.name = name;
	}



	/**
	 * Return the value associated with the column: PIC
	 */
	public java.lang.String getPic () {
		return pic;
	}

	/**
	 * Set the value related to the column: PIC
	 * @param pic the PIC value
	 */
	public void setPic (java.lang.String pic) {
		this.pic = pic;
	}



	/**
	 * Return the value associated with the column: CITY
	 */
	public java.lang.String getCity () {
		return city;
	}

	/**
	 * Set the value related to the column: CITY
	 * @param city the CITY value
	 */
	public void setCity (java.lang.String city) {
		this.city = city;
	}


	public java.lang.String getArea() {
		return area;
	}

	public void setArea(java.lang.String area) {
		this.area = area;
	}

	/**
	 * Return the value associated with the column: ADDRESS
	 */
	public java.lang.String getAddress () {
		return address;
	}

	/**
	 * Set the value related to the column: ADDRESS
	 * @param address the ADDRESS value
	 */
	public void setAddress (java.lang.String address) {
		this.address = address;
	}



	/**
	 * Return the value associated with the column: TEL
	 */
	public java.lang.String getTel () {
		return tel;
	}

	/**
	 * Set the value related to the column: TEL
	 * @param tel the TEL value
	 */
	public void setTel (java.lang.String tel) {
		this.tel = tel;
	}



	/**
	 * Return the value associated with the column: FAX
	 */
	public java.lang.String getFax () {
		return fax;
	}

	/**
	 * Set the value related to the column: FAX
	 * @param fax the FAX value
	 */
	public void setFax (java.lang.String fax) {
		this.fax = fax;
	}



	/**
	 * Return the value associated with the column: MOBILE
	 */
	public java.lang.String getMobile () {
		return mobile;
	}

	/**
	 * Set the value related to the column: MOBILE
	 * @param mobile the MOBILE value
	 */
	public void setMobile (java.lang.String mobile) {
		this.mobile = mobile;
	}



	/**
	 * Return the value associated with the column: QQ
	 */
	public java.lang.String getQq () {
		return qq;
	}

	/**
	 * Set the value related to the column: QQ
	 * @param qq the QQ value
	 */
	public void setQq (java.lang.String qq) {
		this.qq = qq;
	}



	/**
	 * Return the value associated with the column: EMAIL
	 */
	public java.lang.String getEmail () {
		return email;
	}

	/**
	 * Set the value related to the column: EMAIL
	 * @param email the EMAIL value
	 */
	public void setEmail (java.lang.String email) {
		this.email = email;
	}



	/**
	 * Return the value associated with the column: LICENSE
	 */
	public java.lang.String getLicense () {
		return license;
	}

	/**
	 * Set the value related to the column: LICENSE
	 * @param license the LICENSE value
	 */
	public void setLicense (java.lang.String license) {
		this.license = license;
	}



	/**
	 * Return the value associated with the column: LEGAL
	 */
	public java.lang.String getLegal () {
		return legal;
	}

	/**
	 * Set the value related to the column: LEGAL
	 * @param legal the LEGAL value
	 */
	public void setLegal (java.lang.String legal) {
		this.legal = legal;
	}



	/**
	 * Return the value associated with the column: INTRO
	 */
	public java.lang.String getIntro () {
		return intro;
	}

	/**
	 * Set the value related to the column: INTRO
	 * @param intro the INTRO value
	 */
	public void setIntro (java.lang.String intro) {
		this.intro = intro;
	}



	/**
	 * Return the value associated with the column: STATUS
	 */
	public java.lang.String getStatus () {
		return status;
	}

	/**
	 * Set the value related to the column: STATUS
	 * @param status the STATUS value
	 */
	public void setStatus (java.lang.String status) {
		this.status = status;
	}



	/**
	 * Return the value associated with the column: MAPY
	 */
	public java.math.BigDecimal getMapy () {
		return mapy;
	}

	/**
	 * Set the value related to the column: MAPY
	 * @param mapy the MAPY value
	 */
	public void setMapy (java.math.BigDecimal mapy) {
		this.mapy = mapy;
	}



	/**
	 * Return the value associated with the column: MAPX
	 */
	public java.math.BigDecimal getMapx () {
		return mapx;
	}

	/**
	 * Set the value related to the column: MAPX
	 * @param mapx the MAPX value
	 */
	public void setMapx (java.math.BigDecimal mapx) {
		this.mapx = mapx;
	}


	public java.lang.String getBustype() {
		return bustype;
	}

	public void setBustype(java.lang.String bustype) {
		this.bustype = bustype;
	}

	public java.lang.String getLegalid() {
		return legalid;
	}

	public void setLegalid(java.lang.String legalid) {
		this.legalid = legalid;
	}

	public java.lang.String getCommid() {
		return commid;
	}

	public void setCommid(java.lang.String commid) {
		this.commid = commid;
	}

	public java.lang.String getPasscard() {
		return passcard;
	}

	public void setPasscard(java.lang.String passcard) {
		this.passcard = passcard;
	}

	public java.lang.String getIndustry() {
		return industry;
	}

	public void setIndustry(java.lang.String industry) {
		this.industry = industry;
	}

	
	public java.lang.String getComment() {
		return comment;
	}

	public void setComment(java.lang.String comment) {
		this.comment = comment;
	}

	public java.util.Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(java.util.Date createtime) {
		this.createtime = createtime;
	}

	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.lovejes.cuniao.domain.CnBusiness)) return false;
		else {
			com.lovejes.cuniao.domain.CnBusiness cnBusiness = (com.lovejes.cuniao.domain.CnBusiness) obj;
			if (null == this.getId() || null == cnBusiness.getId()) return false;
			else return (this.getId().equals(cnBusiness.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}